public class OperatorDemo {
    // 整数相除只能得整数，要得到小数必须有小数参与运算
    public static void main(String[] args) {
        System.out.println(5 / 2);
        System.out.println(5 / 2.0);
        System.out.println(5.0 / 2);
        System.out.println(5.0 / 2.0);
        System.out.println(5 % 2);
    }
}
